package cn.yuanqiao.archive.storeRoom.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.annotation.IdAnnotation;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 档案盒规格对象 YQBOXSPEC
 * 
 * @author xy
 * @date 2023-06-19
 */
public class Boxspec extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    private final String BIGTABLENAME = "_YQBOXSPEC";

    public Boxspec() {
        String tenantCode = SecurityUtils.getTenantCode();
        if(StringUtils.isEmpty(tenantCode)){
            //throw new ServiceException("tenantCode is null");
            this.tableName="YQBOXSPEC";
        }else {
            this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
        }
    }
    /** id */
    @IdAnnotation
    private Long specId;

    private String specIds;

    /** 档案盒规格 */
    @Excel(name = "档案盒规格")
    private String specName;

    /**
     * 档案盒结束规格
     */
    private String edSpecName;




    /** 可装页数  */
    @Excel(name = "可装页数 ")
    private Integer spectPage;

    /** 盒子数目  */
    @Excel(name = "盒子数目 ")
    private Integer specCount;

    /** 规格单位 */
    @Excel(name = "规格单位")
    private Integer specDw;

    /** 备注 */
    @Excel(name = "备注")
    private String bz;

    /** 创建人 */
/*
    @Excel(name = "创建人")
*/
    private Long creator;

    /** 最后更新人 */
/*
    @Excel(name = "最后更新人")
*/
    private Long lastupdater;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastupdateTime;

    /** 是否删除 */
/*
    @Excel(name = "是否删除")
*/
    private Integer isDel;


    private String tableName;

    private Integer specAcount;
    public void setSpecId(Long specId) 
    {
        this.specId = specId;
    }

    public Long getSpecId() 
    {
        return specId;
    }
    public void setSpecName(String specName) 
    {
        this.specName = specName;
    }

    public String getSpecName() 
    {
        return specName;
    }
    public void setSpectPage(Integer spectPage) 
    {
        this.spectPage = spectPage;
    }

    public Integer getSpectPage() 
    {
        return spectPage;
    }
    public void setSpecCount(Integer specCount) 
    {
        this.specCount = specCount;
    }

    public Integer getSpecCount() 
    {
        return specCount;
    }
    public void setSpecDw(Integer specDw) 
    {
        this.specDw = specDw;
    }

    public Integer getSpecDw() 
    {
        return specDw;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Long getLastupdater() {
        return lastupdater;
    }

    public void setLastupdater(Long lastupdater) {
        this.lastupdater = lastupdater;
    }

    public void setLastupdateTime(Date lastupdateTime)
    {
        this.lastupdateTime = lastupdateTime;
    }

    public Date getLastupdateTime() 
    {
        return lastupdateTime;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSpecIds() {
        return specIds;
    }

    public void setSpecIds(String specIds) {
        this.specIds = specIds;
    }

    public Integer getSpecAcount() {
        return specAcount;
    }

    public void setSpecAcount(Integer specAcount) {
        this.specAcount = specAcount;
    }

    public String getEdSpecName() {
        return edSpecName;
    }

    public void setEdSpecName(String edSpecName) {
        this.edSpecName = edSpecName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("specId", getSpecId())
            .append("specName", getSpecName())
            .append("spectPage", getSpectPage())
            .append("specCount", getSpecCount())
            .append("specDw", getSpecDw())
            .append("bz", getBz())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("lastupdater", getLastupdater())
            .append("lastupdateTime", getLastupdateTime())
            .append("isDel", getIsDel())
            .append("specIds", getSpecIds())
            .append("specAcount", getSpecAcount())
             .append("edSpecName", getEdSpecName())
            .toString();
    }
}
